<?php

function post_wordcount_sidebar_module($args) {
	extract($args);

	if(is_single()) {
		echo($before_module . $before_title . $title . $after_title);
		?>
			<ul>
				<?php mdv_post_word_count(true); ?> words
			</ul>
		<?php
		echo($after_module);
	}
}

if(function_exists('mdv_post_word_count')) {
	register_sidebar_module('Post Word Count', 'post_wordcount_sidebar_module', 'sb-related');
}

?>
